package org.csu.sei.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import org.csu.sei.common.BaseConstant;
import java.time.LocalDateTime;

@Data
@TableName("news")
public class News implements BaseConstant {
    @TableId(type= IdType.AUTO)
    private Long id;
    private Long catId;
    private String title;
    private String smailTitle;
    private String keywords;
    private String description;
    private String img;
    private int listOrder;
    private int newsStatus;
    private String copyFrom;
    private String authorName;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    private int count;
}
